Use cdb library and provide a back-compat layer
authorKunal Mehta <legoktm@gmail.com>
Wed, 12 Nov 2014 18:34:11 +0000 (10:34 -0800)
committerLegoktm <legoktm.wikipedia@gmail.com>
Wed, 19 Nov 2014 18:39:27 +0000 (18:39 +0000)
commit987d2e4c7728193c2ea3d7a0a10d765c9480ae3c
tree61277c2a38ecb3cf37f4603a2b157e1b2a0a9fe2
parent2792ea9783dfe01a2a7285a073608c2eeea2d958
Use cdb library and provide a back-compat layer

The new cdb library is pulled in via composer. Since the
library uses namespaces, a backwards-compatability layer
is provided for the old class names:
* CdbReader
* CdbWriter
* CdbException

The PHP/DBA-specific classes should never have been used directly.

Depends on I98302bdf1 in mediawiki/vendor

Change-Id: I39549ac8540b262cf91f7d1830d36327afb3033d
15 files changed:
autoload.php
composer.json
includes/CdbCompat.php [new file with mode: 0644]
includes/cache/LocalisationCache.php
includes/interwiki/Interwiki.php
includes/libs/cdb/CdbException.php [deleted file]
includes/libs/cdb/CdbFunctions.php [deleted file]
includes/libs/cdb/CdbReader.php [deleted file]
includes/libs/cdb/CdbReaderDBA.php [deleted file]
includes/libs/cdb/CdbReaderPHP.php [deleted file]
includes/libs/cdb/CdbWriter.php [deleted file]
includes/libs/cdb/CdbWriterDBA.php [deleted file]
includes/libs/cdb/CdbWriterPHP.php [deleted file]
maintenance/cdb.php
tests/phpunit/includes/libs/cdb/CdbTest.php [deleted file]